package com.maben.udp.V1.controller;

import com.maben.udp.V1.service.UdpIntegrationService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 测试接口类
 */
@RestController
public class TestController {
    @Resource
    private UdpIntegrationService udpIntegrationService;
    @GetMapping("test_send")
    public Object testSend(String msg){
        udpIntegrationService.sendMessage(msg);
        return "send success";
    }
}
